package com.jh.paymentchannel.pojo;

import java.math.BigDecimal;
import java.util.Objects;

public class CmOrderQuery {
    private BigDecimal payable = BigDecimal.ZERO;
    private long status = 1;
    private String result_code;
    private String cmOrderId;
    private String time;
    private String timeEnd;
    private long refundStatus = 0;
    private String shopId;
    private BigDecimal money = BigDecimal.ZERO;
    private BigDecimal refund_money = BigDecimal.ZERO;
    private BigDecimal commission = BigDecimal.ZERO;
    private BigDecimal activity = BigDecimal.ZERO;
    private String orderId;
    private String order_type;

    public BigDecimal getPayable() {
        return payable;
    }

    public void setPayable(BigDecimal payable) {
        this.payable = payable;
    }

    public long getStatus() {
        return status;
    }

    public void setStatus(long status) {
        this.status = status;
    }

    public String getResult_code() {
        return result_code;
    }

    public void setResult_code(String result_code) {
        this.result_code = result_code;
    }

    public String getCmOrderId() {
        return cmOrderId;
    }

    public void setCmOrderId(String cmOrderId) {
        this.cmOrderId = cmOrderId;
    }

    public String getTime() {
        return time;
    }

    public void setTime(String time) {
        this.time = time;
    }

    public String getTimeEnd() {
        return timeEnd;
    }

    public void setTimeEnd(String timeEnd) {
        this.timeEnd = timeEnd;
    }

    public long getRefundStatus() {
        return refundStatus;
    }

    public void setRefundStatus(long refundStatus) {
        this.refundStatus = refundStatus;
    }

    public String getShopId() {
        return shopId;
    }

    public void setShopId(String shopId) {
        this.shopId = shopId;
    }

    public BigDecimal getMoney() {
        return money;
    }

    public void setMoney(BigDecimal money) {
        this.money = money;
    }

    public BigDecimal getRefund_money() {
        return refund_money;
    }

    public void setRefund_money(BigDecimal refund_money) {
        this.refund_money = refund_money;
    }

    public BigDecimal getCommission() {
        return commission;
    }

    public void setCommission(BigDecimal commission) {
        this.commission = commission;
    }

    public BigDecimal getActivity() {
        return activity;
    }

    public void setActivity(BigDecimal activity) {
        this.activity = activity;
    }

    public String getOrderId() {
        return orderId;
    }

    public void setOrderId(String orderId) {
        this.orderId = orderId;
    }

    public String getOrder_type() {
        return order_type;
    }

    public void setOrder_type(String order_type) {
        this.order_type = order_type;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof CmOrderQuery)) return false;
        CmOrderQuery that = (CmOrderQuery) o;
        return getStatus() == that.getStatus() &&
                getRefundStatus() == that.getRefundStatus() &&
                Objects.equals(getPayable(), that.getPayable()) &&
                Objects.equals(getResult_code(), that.getResult_code()) &&
                Objects.equals(getCmOrderId(), that.getCmOrderId()) &&
                Objects.equals(getTime(), that.getTime()) &&
                Objects.equals(getTimeEnd(), that.getTimeEnd()) &&
                Objects.equals(getShopId(), that.getShopId()) &&
                Objects.equals(getMoney(), that.getMoney()) &&
                Objects.equals(getRefund_money(), that.getRefund_money()) &&
                Objects.equals(getCommission(), that.getCommission()) &&
                Objects.equals(getActivity(), that.getActivity()) &&
                Objects.equals(getOrderId(), that.getOrderId()) &&
                Objects.equals(getOrder_type(), that.getOrder_type());
    }

    @Override
    public int hashCode() {
        return Objects.hash(getPayable(), getStatus(), getResult_code(), getCmOrderId(), getTime(), getTimeEnd(), getRefundStatus(), getShopId(), getMoney(), getRefund_money(), getCommission(), getActivity(), getOrderId(), getOrder_type());
    }

    @Override
    public String toString() {
        return "CmOrderQuery{" +
                "payable=" + payable +
                ", status=" + status +
                ", result_code='" + result_code + '\'' +
                ", cmOrderId='" + cmOrderId + '\'' +
                ", time='" + time + '\'' +
                ", timeEnd='" + timeEnd + '\'' +
                ", refundStatus=" + refundStatus +
                ", shopId='" + shopId + '\'' +
                ", money=" + money +
                ", refund_money=" + refund_money +
                ", commission=" + commission +
                ", activity=" + activity +
                ", orderId='" + orderId + '\'' +
                ", order_type='" + order_type + '\'' +
                '}';
    }
}
